package com.app.mapper.authority;

import java.util.List;

import com.app.entity.authority.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

	/**
	 * ע���û�
	 * @param user
	 * @return
	 */
	//int insertUser(User user);

	/**
	 * �û���½
	 * @param loginname
	 * @param password
	 * @return
	 */
	User selectUser(@Param("id") String id);

	User loadUser(@Param("loginname") String loginName);

	/**
	 * ��ѯ�����û�
	 * @return
	 */
	List<User> query();
	
	/**
	 * ɾ���û�
	 * @param user_id
	 * @return
	 */
   User deleteUser(String id);
   
   /**
    * �����û�
    * @param user
    * @return
    */
   User insertUser(User user);
   
   User updateUser(User user);
}
